<template>
  <div class="dialog">
    <el-dialog :title="titleText" :visible="showInfo" width="55%" top="0" @close="cancel">

      <span v-for="item, index in seeInfoObject.alarmTypeDataTypeMapperList" :key="index">{{ item.dataTypeName }} <span v-if="seeInfoObject.alarmTypeDataTypeMapperList.length - 1 !== index">，</span> </span>
      <div slot="footer" class="dialog-footer">
        <el-button class="cancelbtn" @click="cancel">取 消</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
export default {
  props: {
    // 弹框名称
    titleText: {
      type: String,
      default: ""
    },
    showInfo: {
      type: Boolean,
      default: false
    },
    seeInfoObject: {
      type: [Object],
      default: () => {
        return {};
      }
    }
  },
  data() {
    return {};
  },
  created() {
    console.log(this.seeInfoObject);
  },
  methods: {
    cancel() {
      this.$emit("closeDialog");
    }
  }
};
</script>

<style lang="scss" scoped>
.add-many {
  border: 1px solid #6ecae3;
  width: 40px;
  height: 40px;
  padding: 0;
  background-color: transparent;
  line-height: 40px;
  border-radius: 4px;
  color: rgb(161, 154, 154);
  font-weight: 600;
  i {
    font-size: 40px;
  }
}
</style>
